package com.kobe.Pact.controller;

import com.kobe.Pact.domain.PactUser;
import com.kobe.Pact.service.PactService;
import com.kobe.common.core.controller.BaseController;
import com.kobe.common.core.domain.AjaxResult;
import com.kobe.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/kobe/project")
public class PactController extends BaseController {
    @Autowired
    private PactService pactService;

    @RequestMapping("/list")
    public TableDataInfo listPact(PactUser pact) {
        startPage();
        List<PactUser> list = pactService.listOaContract(pact);
        return getDataTable(list);
    }
}
